#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QSlider>
#include <QLineEdit>

extern "C"{
#include "../../JDLV_pthread.h"
}

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    void initTable();
    void updateTable(Domaine domaineTmp);
    void changeTable();
    void showCell(int line, int col, int i, int j, Domaine domaineTmp);
    void clearDomaine();
    void initialisation();
    Domaine initTest();

public slots:
    void nextStep();
    void run();
    void stop();
    void clear();
    void generate();
    void changeCellValue(int x, int y);

private:
    Ui::MainWindow *ui;
    Domaine domaine;
    int nbIterations;
    int nbIterationsTmp;
    int domain_Size;
    int percentage_living;
    int timeExe;

};

#endif // MAINWINDOW_H
